package com.java.grammer.abstructs.exer1;

/**
 * @author luzhikun
 * @date 2020/12/6- 13:31
 * A:案例演示
 * 具体事物：猫，狗
 * 共性：姓名，年龄，吃饭
 * 猫的特性:抓老鼠
 * 狗的特性:看家
 */
public class AnimalTest {
    public static void main(String[] args) {
        Animal animal = new Cat();
        animal.eat();
        System.out.println("---------------------");
        Animal animal1 = new Dog();
        animal.eat();
    }
}
